import Teacher from './index.vue'
import TLession from './lession/index.vue'
import TLessionDetail from './lession/detail.vue'
import lessionTest from './lession/test.vue'
import Tutorship from './tutorship.vue'
import TutorshipDetail from './tutorshipDetail.vue'
import TExam from './mistake/exam.vue'
import TMistake from './mistake/index.vue'
import TMistakeHomework from './mistake/homework.vue'
import TMistakeDetail from './mistake/detail.vue'
import THomework from './homework/index.vue'
import THomeworkDetail from './homework/detail.vue'
import THomeworkScore from './homework/score.vue'
import THomeworkAddNewWork from './homework/addNewWork.vue'
import personReport from './homework/personReport.vue'
import TMyStudents from './myStudents/index.vue'

const route = {
  path: '/teacher',
  component: Teacher,
  children: [
    {
      path: '',
      alias: 'lession',
      component: TLession
    },
    {
      path: 'tutorship',
      component: Tutorship
    },
    {
      path: 'tutorship/:homeworkid',
      component: TutorshipDetail
    },
    {
      path: 'mistake',
      component: TMistake,
      children: [
        {
          path: '',
          component: TMistakeHomework
        },
        {
          path: 'exam',
          component: TExam
        }
      ]
    },
    {
      path: 'mistake/detail',
      component: TMistakeDetail
    },
    {
      path: 'homework',
      component: THomework
    },
    {
      path: 'homework/detail/:homeworkid',
      component: THomeworkDetail
    },
    {
      path: 'homework/personReport/:homeworkid',
      component: personReport
    },
    {
      path: 'homework/score',
      component: THomeworkScore
    },
    {
      path: 'homework/addNewWork',
      component: THomeworkAddNewWork
    },
    {
      path: 'lession/:catelogid/:bookid',
      component: TLessionDetail
    },
    {
      path: 'lession/:catelogid',
      component: TLession
    },
    {
      path: 'lession/:catelogid/:bookid/test',
      component: lessionTest
    },
    {
      path: 'myStudents',
      component: TMyStudents
    }
  ]
}

export default route
